﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Castle.ActiveRecord;
using ZDSoft.QLMS.Entity.CreateRule;
using ZDSoft.QLMS.Entity.Rules;
using ZDSoft.QLMS.Entity.QuestionLibrary;

namespace ZDSoft.QLMS.Entity
{
    [ActiveRecord]
    public class Type : EntityBase<Type>
    {
        [Property]
        public string Name { get; set; }

        //状态
        [Property]
        public bool IsActive { get; set; }

        [HasMany(typeof(Question), ColumnKey = "TypeID", Inverse = true)]
        public IList<Question> Questions { get; set; }

        [HasMany(typeof(TypeRule), ColumnKey = "TypeID", Inverse = true)]
        public IList<TypeRule> TypeRules { get; set; }

        [HasMany(typeof(TestPaperPart), ColumnKey = "TypeID", Inverse = true)]
        public IList<TestPaperPart> TestPaperParts { get; set; }
    }
}
